<script setup>
import { ref, computed, defineProps, defineEmits } from "vue";
const { meta, vm } = props;
const model = vm.getModel(meta.model || "~");
const attribute = meta.name;
const fieldValue = computed(() => {
  let data = model?.value;
  if (data) {
    return data[attribute] == null ? "-" : data[attribute];
  } else {
    return "-";
  }
});
</script>
<template>
  <el-form-item label=":meta.title">
    <el-input v-model="fieldValue" />
  </el-form-item>
</template>